#ifndef _Item_H_
#define _Item_H_

#include "Fix.h"

class Item : public Fix
{
public:

	Item();
	~Item();

	bool Create( IDirect3DDevice9 *pkDevice, int index );
	void Update( unsigned int dt );
	void Render();
	void Release();


protected:

	D3DXVECTOR3 MakeItemData( D3DXVECTOR3 Pos, float x, float y, float z );
	int MakeIndex( int Count, int x, int y, int z, int Num );

	int MakeBuffer();
	int InitItemVB();
	int InitItemIB();

	int m_iVertexNum;
	int m_iFaceNum;
	int m_iSlice;
	float m_fDist;
	int m_iItemIndex;
	UINT m_uiFVF;

	MYINDEX *m_pkIndex;
	D3DXMATRIXA16	m_matRotation;
	D3DXMATRIXA16	m_matScale;
	D3DXMATRIXA16	m_matTrans;



};



#endif // _Item_H_